/*Timeline class
 * @author Charles Schuh
 *
 * Represents a hashmap of spikes with whose key is the time
 * in milliseconds times ten of each spike
 */
package neuronvisualizer;
import java.util.HashMap;
import java.util.ArrayList;
public class Timeline {
	private HashMap<Long,ArrayList<Integer>> spikes;

	//Constructs new timeline from input text file in directory dir
	public Timeline(String dir){
		spikes = SpikeParser.parse(dir);
	}
        public ArrayList<Integer> isSpiking(long k){
        	return spikes.get(k);
        }
        public HashMap<Long,ArrayList<Integer>> getSpikes(){
        	return spikes;
        }
}